let SqliteDB = require('./testSqlite').SqliteDB
let file = 'test.db'
let sqliteDB = new SqliteDB(file)


/// 创建表
// let createTileTableSql = "create table if not exists tiles(level INTEGER, column INTEGER, row INTEGER, content BLOB);";
// sqliteDB.createTable(createTileTableSql);



/// 插入数据.
// let tileData = [[1, 10, 10], [1, 11, 11], [1, 10, 9], [1, 11, 9]];
// let insertTileSql = "insert into tiles(level, column, row) values(?, ?, ?)";
// sqliteDB.insertData(insertTileSql, tileData);

//
// //查询
// var querySql = 'select * from tiles';
// sqliteDB.queryData(querySql, objs=>{
//     for(var i = 0; i < objs.length; ++i){
//         console.log(objs[i]);
//     }
// });


sqliteDB.close()
